package com.ruoyi.walmart.service.address;

import com.ruoyi.common.core.domain.PaymentMethod;
import com.ruoyi.common.core.domain.TreeSelect;
import com.ruoyi.common.core.domain.walmart.State;

import java.util.List;

public interface StateService {
    /**
     * 条件查询
     * @param state 条件
     * @return 结果
     */
    List<State> selectByState(State state);

    /**
     * 查询州结果信息
     * @param state
     * @return
     */
    public List<TreeSelect> selectStateTreeList(State state);

    /**
     * 构建前端所需要的树节点
     * @param stateList
     * @return
     */
    public List<State> buildStateTree(List<State> stateList);

    /**
     * 构建前端所需要的下拉数结果
     * @param stateList
     * @return
     */
    public List<TreeSelect> buildStateTreeSelect(List<State> stateList);
}
